package com.vanke.house.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author fangyu
 * @version v1.0.0
 * @date 2020/6/19 11:00 上午
 */
@Data
@TableName(value = "house_info")
public class HouseInfo {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 房屋描述
     */
    @TableField(value = "title")
    private String title;

    /**
     * 房屋朝向
     */
    @TableField(value = "orientation")
    private String orientation;

    /**
     * 房屋楼层
     */
    @TableField(value = "floor")
    private String floor;

    /**
     * 成交时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "deal_time")
    private Date dealTime;

    /**
     * 单价
     */
    @TableField(value = "price")
    private String price;

    /**
     * 成交总价
     */
    @TableField(value = "total_price")
    private Integer totalPrice;

    /**
     * 挂牌价
     */
    @TableField(value = "listing_price")
    private Integer listingPrice;

    /**
     * 成交周期
     */
    @TableField(value = "deal_cycle")
    private String dealCycle;

    /**
     * 采集时间
     */
    @TableField(value = "crawl_time")
    private Date crawlTime;

    /**
     * 备注
     */
    @TableField(value = "note")
    private String note;

    /**
     * 房源详情
     */
    @TableField(value = "link")
    private String link;
}